<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改执行网关配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-systemSet-edit" th:object="${systemSet}">
            <input id="systemType" name="systemType" th:field="*{systemType}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">系统编号：</label>
				<div class="col-sm-8">
					<input id="systemNo" name="systemNo" th:field="*{systemNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">系统名称:</label>
				<div class="col-sm-8">
					<input id="systemName" name="systemName" th:field="*{systemName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">IP地址：</label>
				<div class="col-sm-8">
					<input id="ipAddr" name="ipAddr" th:field="*{ipAddr}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">端口：</label>
				<div class="col-sm-8">
					<input id="pORT" name="pORT" th:field="*{pORT}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点号：</label>
				<div class="col-sm-8">
					<input id="destNo" name="destNo" th:field="*{destNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">主功能号：</label>
				<div class="col-sm-8">
					<input id="functionNo" name="functionNo" th:field="*{functionNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">数据库名：</label>
				<div class="col-sm-8">
					<input id="dbName" name="dbName" th:field="*{dbName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户名：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">密码：</label>
				<div class="col-sm-8">
					<input id="userPwd" name="userPwd" th:field="*{userPwd}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">请求地址：</label>
				<div class="col-sm-8">
					<input id="callAddr" name="callAddr" th:field="*{callAddr}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">系统分类：</label>
				<div class="col-sm-8">
					<div class="input-group" style="width: 100%">
						<select id="stId" name="stId" class="form-control m-b" th:with="type=${@dict.getType('st_id')}">
							<option value="">请选择</option>
							<option th:each="dict : ${type}" th:selected="(${dict.dictValue} == *{stId})" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
						</select>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">节点1：</label>
				<div class="col-sm-8">
					<input id="destNo1" name="destNo1" th:field="*{destNo1}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点2：</label>
				<div class="col-sm-8">
					<input id="destNo2" name="destNo2" th:field="*{destNo2}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点3：</label>
				<div class="col-sm-8">
					<input id="destNo3" name="destNo3" th:field="*{destNo3}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点4：</label>
				<div class="col-sm-8">
					<input id="destNo4" name="destNo4" th:field="*{destNo4}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">主功能号1：</label>
				<div class="col-sm-8">
					<input id="functionNo1" name="functionNo1" th:field="*{functionNo1}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">主功能号2：</label>
				<div class="col-sm-8">
					<input id="functionNo2" name="functionNo2" th:field="*{functionNo2}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点5：</label>
				<div class="col-sm-8">
					<input id="destNo5" name="destNo5" th:field="*{destNo5}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点6：</label>
				<div class="col-sm-8">
					<input id="destNo6" name="destNo6" th:field="*{destNo6}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点7：</label>
				<div class="col-sm-8">
					<input id="destNo7" name="destNo7" th:field="*{destNo7}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点8：</label>
				<div class="col-sm-8">
					<input id="destNo8" name="destNo8" th:field="*{destNo8}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点9：</label>
				<div class="col-sm-8">
					<input id="destNo9" name="destNo9" th:field="*{destNo9}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">节点10：</label>
				<div class="col-sm-8">
					<input id="destNo10" name="destNo10" th:field="*{destNo10}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/systemSet";
		$("#form-systemSet-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-systemSet-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
